package com.kizitonwose.calendarview.utils;

import java.time.LocalDate;
import java.time.YearMonth;

/**
 * @author LiuQingHua
 * @version 1.0
 * @date 2021/2/23/023 16:10
 */
public class LocalDateExtension {
    private LocalDate localDate;

    private LocalDateExtension(LocalDate localDate) {
        this.localDate = localDate;
    }

    public static LocalDateExtension getInstance(LocalDate localDate) {
        return new LocalDateExtension(localDate);
    }

    public  YearMonth getYearMonth(){
        return YearMonth.of(localDate.getYear(), localDate.getMonth());
    }





}
